import {defHttp} from '/@/utils/http/axios';
import {ApiRes} from "/@/api/constant";
import {SysSmsRecordApi} from "/@/api/api";

export const getSysSmsRecordList = (params?: object) =>
    defHttp.get<ApiRes>({url: SysSmsRecordApi.SysSmsRecordList, params});

export const createSysSmsRecord = (params?: object
) => {
    return defHttp.post<ApiRes>(
        {
            url: SysSmsRecordApi.Base,
            params,
        }
    );
};

export const updateSysSmsRecord = (id: string, params?: object
) => {
    return defHttp.put<ApiRes>(
        {
            url: SysSmsRecordApi.Base + '/' + id,
            params,
        }
    );
};

export const deleteSysSmsRecord = (id: string) => {
    return defHttp.delete<ApiRes>(
        {
            url: SysSmsRecordApi.Base + '/' + id,
        }
    );
};
